package com.kaifamiao.month05.day06;


public class Demo {

    public static void main(String[] args) {

//        Thread c1 = new MyThread("窗口一");
//        Thread c2 = new MyThread("窗口二");
//        Thread c3 = new MyThread("窗口三");
//        c1.start();
//        c2.start();
//        c3.start();
        Runnable run = new MyRunnable();
        Thread c1 = new Thread(run, "窗口一");
        Thread c2 = new Thread(run, "窗口二");
        Thread c3 = new Thread(run, "窗口三");

        c1.start();
        c2.start();
        c3.start();


    }
}
